package com.lening.provider.controller.InformationManagement;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseController;
import com.lening.provider.dto.InformationManagement.NewsListDTO;
import com.lening.provider.po.InformationManagement.NewsListPO;
import com.lening.provider.service.InformationManagement.NewsListService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:33
 * @description 类对象
 */
@Slf4j
@RestController
@RequestMapping("newsLists")
public class NewsListController extends BaseController<NewsListPO, NewsListDTO, NewsListService> {

    @Autowired(required = false)
    private WebClient webClient;

    @Autowired
    private NewsListService newsListService;


    @Override
    public Page<?> page(NewsListDTO newsListDTO) {
        return newsListService.newList(newsListDTO);
    }
}
